package api

import (
	"github.com/gin-gonic/gin"
)

func Init(router gin.IRouter) {
	topicGroup := router.Group("/topic")
	{
		topicGroup.POST("/saveSingleQuestion", SaveSingleQuestion)
		topicGroup.GET("/getAllTopic", GetAllTopic)
		topicGroup.POST("/uploadBatchQuestion", UploadBatchQuestion)
		topicGroup.POST("/uploadQuestionFile", UploadQuestionFile)
		topicGroup.POST("/saveBatchQuestions", SaveBatchQuestions)
		topicGroup.POST("/deleteTopicByID", DeleteTopicByID)
		topicGroup.POST("/chatMassge", ChatMassge)
		topicGroup.POST("/getAllTopicFilter", GetAllTopicFilter)
		topicGroup.POST("/createTestPaper", WithPostAction(CreateTestPaperInfo, CreateTestPaper))
		topicGroup.POST("/getTestPapers", GetTestPapers)
		topicGroup.POST("/deleteTestPaper", DeleteTestPaper)

	}
	router.POST("/upload", Upload)
	router.POST("/uploadVideo", Video)
	router.GET("/test", HandleTest)

}

func HandleTest(c *gin.Context) {

}
